package com.demo.lottery.probability;

import lombok.Data;

/**
 * @author wangfengchen
 * 奖品类
 */
@Data
public class Prize {


  /**
   * 奖品名称
   */
  private String name;

  /**
   * 中奖概率
   */
  private double probability;

  /**
   * 累计概率
   */
  private double cumulativeProbability;


  public Prize(String name, double probability) {
    this.name = name;
    this.probability = probability;
  }

}